<layout name="master" />
<ul class="breadcrumb no-border no-radius b-b b-light pull-in">
    <li><a href="index.html"><i class="fa fa-home"></i> Home</a></li>
    <li><a href="#">类型属性管理</a></li>
    <li><a href="#">添加类型属性</a></li>
</ul>
<div class="m-b-md">
    <h3 class="m-b-none">添加类型属性</h3>
</div>
<div class="row">
    <div class="col-sm-12">
        <section class="panel panel-default">
            <header class="panel-heading font-bold">类型属性</header>
            <div class="panel-body">
                <form role="form" action="" method="post">
                    <div class="form-group">
                        <label>类型属性名称</label>
                        <input type="text" class="form-control" name="tpname" placeholder="请输入类型属性名称" value="{$oldData['tpname']}">
                    </div>
                    <div class="form-group">
                        <label>属性类型</label>
                        <div class="radio">
                            <label>
                                <input type="radio" name="tptype" value="1" <if condition="$oldData['tptype'] == 1">checked</if>>属性
                            </label>
                            <label>
                                <input type="radio" name="tptype" value="2" <if condition="$oldData['tptype'] == 2">checked</if>>规格
                            </label>
                        </div>
                    </div>
                    <div class="form-group">
                        <label>属性值</label>
                        <textarea name="tpvalue" class="form-control" rows="10" placeholder="属性值，以逗号隔开">{$oldData['tpvalue']}</textarea>
                    </div>
                    <input type="hidden" name="tid" value="{$_GET['tid']}">
                    <button type="submit" class="btn btn-sm btn-default">保存</button>
                </form>
            </div>
        </section>
    </div>
</div>
<script>
    function controller($scope, $, _){
    }
</script>
